package com.sy.test.takenumberdemo.presenter;


import com.sy.test.takenumberdemo.bean.Game;
import com.sy.test.takenumberdemo.bean.GameTime;
import com.sy.test.takenumberdemo.contract.EndContract;
import com.sy.test.takenumberdemo.model.EndModel;

import java.util.ArrayList;
import java.util.HashMap;

public class EndPresenter implements EndContract.Presenter {
    private EndContract.View endContractView;
    private EndModel endModel;
    public EndPresenter(EndContract.View view){
        endContractView = view;
        endModel = new EndModel(this);
    }

    @Override
    public void requestGameData(String page, String week) {
        endModel.getGameData(page,week);
    }

    @Override
    public void onGetGameData(ArrayList<Game> list, HashMap<String, GameTime> gameTimeList) {
        endContractView.onGetGameData(list,gameTimeList);
    }
}
